package com.cms.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PageTemplatesExample {

    protected String orderByClause;

   
    protected List oredCriteria;

    public PageTemplatesExample() {
        oredCriteria = new ArrayList();
    }

 
    protected PageTemplatesExample(PageTemplatesExample example) {
        this.orderByClause = example.orderByClause;
        this.oredCriteria = example.oredCriteria;
    }

    
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    
    public String getOrderByClause() {
        return orderByClause;
    }

  
    public List getOredCriteria() {
        return oredCriteria;
    }

    
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

   
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
    }

   
    public static class Criteria {
        protected List criteriaWithoutValue;

        protected List criteriaWithSingleValue;

        protected List criteriaWithListValue;

        protected List criteriaWithBetweenValue;

        protected Criteria() {
            super();
            criteriaWithoutValue = new ArrayList();
            criteriaWithSingleValue = new ArrayList();
            criteriaWithListValue = new ArrayList();
            criteriaWithBetweenValue = new ArrayList();
        }

        public boolean isValid() {
            return criteriaWithoutValue.size() > 0
                || criteriaWithSingleValue.size() > 0
                || criteriaWithListValue.size() > 0
                || criteriaWithBetweenValue.size() > 0;
        }

        public List getCriteriaWithoutValue() {
            return criteriaWithoutValue;
        }

        public List getCriteriaWithSingleValue() {
            return criteriaWithSingleValue;
        }

        public List getCriteriaWithListValue() {
            return criteriaWithListValue;
        }

        public List getCriteriaWithBetweenValue() {
            return criteriaWithBetweenValue;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteriaWithoutValue.add(condition);
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            Map map = new HashMap();
            map.put("condition", condition);
            map.put("value", value);
            criteriaWithSingleValue.add(map);
        }

        protected void addCriterion(String condition, List values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            Map map = new HashMap();
            map.put("condition", condition);
            map.put("values", values);
            criteriaWithListValue.add(map);
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            List list = new ArrayList();
            list.add(value1);
            list.add(value2);
            Map map = new HashMap();
            map.put("condition", condition);
            map.put("values", list);
            criteriaWithBetweenValue.add(map);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return this;
        }

        public Criteria andIdIn(List values) {
            addCriterion("id in", values, "id");
            return this;
        }

        public Criteria andIdNotIn(List values) {
            addCriterion("id not in", values, "id");
            return this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return this;
        }

        public Criteria andGenerationNameIsNull() {
            addCriterion("generation_name is null");
            return this;
        }

        public Criteria andGenerationNameIsNotNull() {
            addCriterion("generation_name is not null");
            return this;
        }

        public Criteria andGenerationNameEqualTo(String value) {
            addCriterion("generation_name =", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameNotEqualTo(String value) {
            addCriterion("generation_name <>", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameGreaterThan(String value) {
            addCriterion("generation_name >", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameGreaterThanOrEqualTo(String value) {
            addCriterion("generation_name >=", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameLessThan(String value) {
            addCriterion("generation_name <", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameLessThanOrEqualTo(String value) {
            addCriterion("generation_name <=", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameLike(String value) {
            addCriterion("generation_name like", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameNotLike(String value) {
            addCriterion("generation_name not like", value, "generationName");
            return this;
        }

        public Criteria andGenerationNameIn(List values) {
            addCriterion("generation_name in", values, "generationName");
            return this;
        }

        public Criteria andGenerationNameNotIn(List values) {
            addCriterion("generation_name not in", values, "generationName");
            return this;
        }

        public Criteria andGenerationNameBetween(String value1, String value2) {
            addCriterion("generation_name between", value1, value2, "generationName");
            return this;
        }

        public Criteria andGenerationNameNotBetween(String value1, String value2) {
            addCriterion("generation_name not between", value1, value2, "generationName");
            return this;
        }

        public Criteria andTemplatesPathIsNull() {
            addCriterion("templates_path is null");
            return this;
        }

        public Criteria andTemplatesPathIsNotNull() {
            addCriterion("templates_path is not null");
            return this;
        }

        public Criteria andTemplatesPathEqualTo(String value) {
            addCriterion("templates_path =", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathNotEqualTo(String value) {
            addCriterion("templates_path <>", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathGreaterThan(String value) {
            addCriterion("templates_path >", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathGreaterThanOrEqualTo(String value) {
            addCriterion("templates_path >=", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathLessThan(String value) {
            addCriterion("templates_path <", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathLessThanOrEqualTo(String value) {
            addCriterion("templates_path <=", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathLike(String value) {
            addCriterion("templates_path like", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathNotLike(String value) {
            addCriterion("templates_path not like", value, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathIn(List values) {
            addCriterion("templates_path in", values, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathNotIn(List values) {
            addCriterion("templates_path not in", values, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathBetween(String value1, String value2) {
            addCriterion("templates_path between", value1, value2, "templatesPath");
            return this;
        }

        public Criteria andTemplatesPathNotBetween(String value1, String value2) {
            addCriterion("templates_path not between", value1, value2, "templatesPath");
            return this;
        }

        public Criteria andGenerationPathIsNull() {
            addCriterion("generation_path is null");
            return this;
        }

        public Criteria andGenerationPathIsNotNull() {
            addCriterion("generation_path is not null");
            return this;
        }

        public Criteria andGenerationPathEqualTo(String value) {
            addCriterion("generation_path =", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathNotEqualTo(String value) {
            addCriterion("generation_path <>", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathGreaterThan(String value) {
            addCriterion("generation_path >", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathGreaterThanOrEqualTo(String value) {
            addCriterion("generation_path >=", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathLessThan(String value) {
            addCriterion("generation_path <", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathLessThanOrEqualTo(String value) {
            addCriterion("generation_path <=", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathLike(String value) {
            addCriterion("generation_path like", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathNotLike(String value) {
            addCriterion("generation_path not like", value, "generationPath");
            return this;
        }

        public Criteria andGenerationPathIn(List values) {
            addCriterion("generation_path in", values, "generationPath");
            return this;
        }

        public Criteria andGenerationPathNotIn(List values) {
            addCriterion("generation_path not in", values, "generationPath");
            return this;
        }

        public Criteria andGenerationPathBetween(String value1, String value2) {
            addCriterion("generation_path between", value1, value2, "generationPath");
            return this;
        }

        public Criteria andGenerationPathNotBetween(String value1, String value2) {
            addCriterion("generation_path not between", value1, value2, "generationPath");
            return this;
        }

        public Criteria andGmtCreatedIsNull() {
            addCriterion("gmt_created is null");
            return this;
        }

        public Criteria andGmtCreatedIsNotNull() {
            addCriterion("gmt_created is not null");
            return this;
        }

        public Criteria andGmtCreatedEqualTo(Date value) {
            addCriterion("gmt_created =", value, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedNotEqualTo(Date value) {
            addCriterion("gmt_created <>", value, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedGreaterThan(Date value) {
            addCriterion("gmt_created >", value, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_created >=", value, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedLessThan(Date value) {
            addCriterion("gmt_created <", value, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedLessThanOrEqualTo(Date value) {
            addCriterion("gmt_created <=", value, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedIn(List values) {
            addCriterion("gmt_created in", values, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedNotIn(List values) {
            addCriterion("gmt_created not in", values, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedBetween(Date value1, Date value2) {
            addCriterion("gmt_created between", value1, value2, "gmtCreated");
            return this;
        }

        public Criteria andGmtCreatedNotBetween(Date value1, Date value2) {
            addCriterion("gmt_created not between", value1, value2, "gmtCreated");
            return this;
        }

        public Criteria andGmtModifyIsNull() {
            addCriterion("gmt_modify is null");
            return this;
        }

        public Criteria andGmtModifyIsNotNull() {
            addCriterion("gmt_modify is not null");
            return this;
        }

        public Criteria andGmtModifyEqualTo(Date value) {
            addCriterion("gmt_modify =", value, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyNotEqualTo(Date value) {
            addCriterion("gmt_modify <>", value, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyGreaterThan(Date value) {
            addCriterion("gmt_modify >", value, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_modify >=", value, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyLessThan(Date value) {
            addCriterion("gmt_modify <", value, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyLessThanOrEqualTo(Date value) {
            addCriterion("gmt_modify <=", value, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyIn(List values) {
            addCriterion("gmt_modify in", values, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyNotIn(List values) {
            addCriterion("gmt_modify not in", values, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyBetween(Date value1, Date value2) {
            addCriterion("gmt_modify between", value1, value2, "gmtModify");
            return this;
        }

        public Criteria andGmtModifyNotBetween(Date value1, Date value2) {
            addCriterion("gmt_modify not between", value1, value2, "gmtModify");
            return this;
        }
    }
}